local size = 500 local bsize = 0.4 local frequency = 10 local scale = 200 local amp_fbm = 60 local gain = 0.5 local lac = 2 local octaves = 16 local fold = Instance.new('Folder') fold.Parent = workspace fold.Name="TGEN" --xOffset=math.random(0,10000) --zOffset=math.random(0,10000) xOffset=1337 zOffset=1337 for x = 0, size do game:GetService('RunService').RenderStepped:Wait() for z = 0, size do local amp = 1 local freq = 1 local total = 0 local normal = 0 for octave = 1, octaves do local noise = math.noise(((x + xOffset) / scale) * freq, ((z + zOffset) / scale) * freq) noise = math.clamp(noise, -1,1) total = total + (noise * amp) amp = amp * gain freq = freq * lac normal = normal + amp end total = total / normal total = total * amp_fbm local block = Instance.new("Part") block.Parent = fold block.Size = Vector3.new(bsize, bsize+3, bsize) block.Position = Vector3.new(x * bsize+75, (math.floor(total) * bsize)+10, z * bsize+75) block.Anchored = true if math.floor(total) <= -5 then block.BrickColor = BrickColor.new("Cool yellow") block.Material = Enum.Material.Sand elseif math.floor(total) >= 25 then block.BrickColor = BrickColor.new("Institutional white") block.Material = Enum.Material.Snow else block.BrickColor = BrickColor.new("Bright green") block.Material = Enum.Material.Grass end end end